/**
 * 
 */
package t4j.typeinfo;

import t4j.typeinfo.pets.Pet;
import t4j.typeinfo.pets.Pets;

/**
 * @author sz
 *
 * create time：2012-12-17
 */
public class PetCount4 {

	public static void main(String[] args) {
		TypeCounter counter = new TypeCounter(Pet.class);
		
		for(Pet pet : Pets.createArray(20)){
			System.out.println(pet.getClass().getSimpleName() + " ");
			
			counter.count(pet);
		}
		
		System.out.println(counter);
	}
}
